<?php /* Smarty version 2.6.16, created on 2011-10-29 18:50:06
         compiled from student_game.tpl */ ?>
<div id="paging">
<div class="right-panel">
      <h1 title="My Game"><span>My Games</span></h1>
      <div class="clear"></div>
	  <p class="button-flex button90"><a href="student_game_update.php"><span>Add Game</span></a></p>
	 <?php if ($this->_tpl_vars['Numstudentgame'] > 0): ?>
	  <?php unset($this->_sections['gameRow']);
$this->_sections['gameRow']['name'] = 'gameRow';
$this->_sections['gameRow']['loop'] = is_array($_loop=$this->_tpl_vars['StudentgameArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['gameRow']['show'] = true;
$this->_sections['gameRow']['max'] = $this->_sections['gameRow']['loop'];
$this->_sections['gameRow']['step'] = 1;
$this->_sections['gameRow']['start'] = $this->_sections['gameRow']['step'] > 0 ? 0 : $this->_sections['gameRow']['loop']-1;
if ($this->_sections['gameRow']['show']) {
    $this->_sections['gameRow']['total'] = $this->_sections['gameRow']['loop'];
    if ($this->_sections['gameRow']['total'] == 0)
        $this->_sections['gameRow']['show'] = false;
} else
    $this->_sections['gameRow']['total'] = 0;
if ($this->_sections['gameRow']['show']):

            for ($this->_sections['gameRow']['index'] = $this->_sections['gameRow']['start'], $this->_sections['gameRow']['iteration'] = 1;
                 $this->_sections['gameRow']['iteration'] <= $this->_sections['gameRow']['total'];
                 $this->_sections['gameRow']['index'] += $this->_sections['gameRow']['step'], $this->_sections['gameRow']['iteration']++):
$this->_sections['gameRow']['rownum'] = $this->_sections['gameRow']['iteration'];
$this->_sections['gameRow']['index_prev'] = $this->_sections['gameRow']['index'] - $this->_sections['gameRow']['step'];
$this->_sections['gameRow']['index_next'] = $this->_sections['gameRow']['index'] + $this->_sections['gameRow']['step'];
$this->_sections['gameRow']['first']      = ($this->_sections['gameRow']['iteration'] == 1);
$this->_sections['gameRow']['last']       = ($this->_sections['gameRow']['iteration'] == $this->_sections['gameRow']['total']);
?>
      <div class="game-list">
       <div>
	        <h2><?php echo $this->_tpl_vars['StudentgameArr'][$this->_sections['gameRow']['index']]['game']; ?>
</h2>
			
			<p class="clear"></p>
            <!--p style="padding-top:5px;"><?php echo $this->_tpl_vars['StudentgameArr'][$this->_sections['gameRow']['index']]['comment']; ?>
</p-->
			  
			<p style="padding-top:5px;"><b>Experience : </b><?php if ($this->_tpl_vars['StudentgameArr'][$this->_sections['gameRow']['index']]['experience'] != ''):  echo $this->_tpl_vars['StudentgameArr'][$this->_sections['gameRow']['index']]['experience'];  else: ?>N/A<?php endif; ?></p>
            <p class="clear"></p>
            <div style="height:10px;"></div>
            <div class="clear"></div>
            <div><div class="view">
			<a href="#" 
			onclick="ConfirmDelete('<?php echo $this->_tpl_vars['page_name']; ?>
?action=del','<?php echo $this->_tpl_vars['StudentgameArr'][$this->_sections['gameRow']['index']]['user_game_id']; ?>
','<?php echo $this->_tpl_vars['StudentgameArr'][$this->_sections['gameRow']['index']]['game']; ?>
','Your selected game:: ')">Delete</a></div>
			<div class="view" style="margin-right:5px;">
			<a href="student_game_update.php?user_game_id=<?php echo $this->_tpl_vars['StudentgameArr'][$this->_sections['gameRow']['index']]['user_game_id']; ?>
">Edit</a></div></div>
         </div>
         <div class="clear"></div>
         <br />
      </div>
      <?php endfor; endif; ?>
	  <?php else: ?>
	    <div class="game-details"> No game found </div>
     <?php endif; ?>
      <div class="clear"></div>
   </div>
 </div>     